fix(hooks): make transcript ingest wing configurable - #2070
Open
grtninja wants to merge 9 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2057.
Hook-driven transcript mining is currently hardcoded to
--wing sessions, even though the diary checkpoint path already derives a stable project wing from the transcript JSONLcwd/path. This adds a backward-compatible routing policy:{ "hooks": { "transcript_wing": "sessions" } }sessionsremains the default and preserves current behavior.projectderives the stable wing through the existing_wing_from_transcript_path()logic.MEMPALACE_HOOK_TRANSCRIPT_WINGoverrides file config.sessionsrather than silently relocating memories.Implementation
MempalaceConfig.hook_transcript_wingwithsessions|projectvalidation.sessionsrather than creating a surprisewing_sessionsmigration.--wing.Test-first verification
The repair branch was created from current upstream
developand used a temporary owner-controlled test-first workflow. The workflow:tests/test_hooks_cli.pyandtests/test_hook_write_routing.py;compileall, andgit diff --check;The submitted branch contains only:
mempalace/config.pymempalace/hooks_cli.pytests/test_hooks_cli.pyRisk
Low and opt-in. Existing installations remain on the historical
sessionswing unless they explicitly selectproject. No storage schema, existing drawer, or default hook behavior is changed.